<#include "include/_meta.html">
<title>我的桌面</title>
</head>
<body>
<div class="page-container">
	<p class="f-20 text-success">欢迎使用汽车租赁 <span class="f-14">v0.1beta</span>管理系统！</p>
	<p>登录次数：18 </p>
	<p>上次登录IP：${lastLoginIp}  上次登录时间：${lastLoginTime}</p>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th colspan="7" scope="col">信息统计</th>
			</tr>
			<tr class="text-c">
				<th>统计</th>
				<th>在租</th>
				<th>待租</th>
				<th>自用</th>
				<th>维修</th>
				<th>保养</th>
			</tr>
		</thead>
		<tbody>
		
			<tr class="text-c">
				<td>今日</td>
				<td>${todayCar.carOrder}</td>
				<td>${todayCar.waitCar}</td>
				<td>${todayCar.selfCar}</td>
				<td>${todayCar.mainTainCar}</td>
				<td>${todayCar.upKeepCar}</td>
			</tr>			
			<tr class="text-c">
				<td>昨日</td>				
				<td>${carMassage.carOrder}</td>
				<td>${carMassage.waitCar}</td>
				<td>${carMassage.selfCar}</td>
				<td>${carMassage.mainTainCar}</td>
				<td>${carMassage.upKeepCar}</td>
			</tr>
			<tr class="text-c">
				<td>本周</td>
				<td>2</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
			<tr class="text-c">
				<td>本月</td>
				<td>2</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
		</tbody>
	</table>
	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
			<tr>
				<th colspan="2" scope="col">服务器信息</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th width="30%">服务器计算机名</th>
				<td><span>${hostName}</span></td>
			</tr>
			<tr>
				<td>服务器IP地址</td>
				<td><span>${lastLoginIp}</span></td>
			</tr>
			<tr>
				<td>服务器域名</td>
				<td>${htmlName}</td>
			</tr>
			<tr>
				<td>服务器端口 </td>
				<td>${serverPort}</td>
			</tr>			
		</tbody>
	</table>
</div>
<footer class="footer mt-20">
	<div class="container">
		<p>感谢jQuery、layer、laypage、Validform、UEditor、My97DatePicker、iconfont、Datatables、WebUploaded、icheck、highcharts、bootstrap-Switch<br>
			Copyright &copy;2015 YUNHE v0.1beta All Rights Reserved.<br>
			本后台系统由<a href="#" target="_blank" title="云和教育前端框架">YUNHE前端框架</a>提供前端技术支持</p>
	</div>
</footer>

<#include "include/_footer.html">


<script>
	(function() {
	
		//测试AJAX异步加载数据
		var loadPageData = function(){
			$.ajax({
			   type: "GET",
			   url: "/welcome2",
			   data: "name=John&location=Boston",
			   success: function(msg){
					$("#lbServerName").html(msg.name);
					$("#lbServerIp").html(msg.state);
			   }
			});
		}
		
		loadPageData();
	
	})();
</script>
</body>
</html>
